<admintpl file="header" />
<!-- Bootstrap -->

<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />

<link href="__PUBLIC__/js/jquery-ui/jquery-ui.min.css" rel="stylesheet" />

<style type="text/css">
    #from, #to {
        width: 100px;
    }
</style>
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('ConstructionAgentMeeting/index')}">代建例会纪要管理</a></li>
            <li class="active"><a href="{:U('ConstructionAgentMeeting/add')}">新增代建例会纪要</a></li>
        </ul>
        <section class="tab-pane active fade in" id="access">
            <div class="row">
                <div class="col-xs-12 col-md-12 col-lg-12">
                    <div class="panel panel-info">
                        <div class="panel-body">
                            <form method="post" class="form-horizontal form-inline tg" action="{:U('ConstructionAgentMeeting/add_post')}">
                                <div class="text-center">
                                    <h2 style="color:red;">
                                        杭州市中医院丁桥分院项目
                                        <br />
                                        会 议 纪 要
                                    </h2>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <h5 style="margin-left:10px">
                                            杭州市中医院
                                        </h5>
                                        <hr style="margin:10px;" />

                                        <input type="text" style="width:220px;" class="input-xt" value="浙江五洲工程项目管理有限公司" readonly />
                                        <p class="pull-right">
                                            <label>编号:</label>
                                            <input type="text" style="width:200px;" class="input-xt" name='code' />
                                        </p>
                                    </div>
                                    <div class="col-md-12 ">
                                        <h3 class="text-center">杭州市中医院丁桥分院项目建设情况工作例会</h3>
                                    </div>
                                </div>
                                <div class="well">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <label>会议时间:</label>
                                            <input type="text" id="from" class="input-xt input-date" value="<php>echo date('Y-m-d');</php>" name='begin_time' />
                                            -
                                            <input type="text" id="to" class="input-xt input-date" value="<php>echo date('Y-m-d');</php>" name='end_time' />
                                        </div>
                                        <div class="col-md-12">
                                            <label>
                                                会议地点:
                                            </label>
                                            <input type="text" class="input-xt" style="width:350px;" name="meeting_place" required />
                                        </div>
                                        <div class="col-md-12">
                                            <label>
                                                会议议题:
                                            </label><input type="text" class="input-xt" style="width:350px;" name="topic_for_discussion" required />
                                        </div>
                                        <div class="col-md-12">
                                            <label>
                                                参加人员:
                                            </label>
                                            <div class="controls" style="display:inline">
                                                <a class="btn upBtn btn-default btn-xs" href="javascript:void(0);">上传会议签到表</a>
                                                <input type="file" id="upFile" name="upFile" style="display:none" />
                                            </div>
                                        </div>
                                        <div class="col-md-12">
                                            <label>会议内容:</label>
                                            <textarea class="input" style="width:100%;height:350px; border:#eee solid 1px;" name="summary"></textarea>
                                        </div>
                                        <div class="col-md-12">
                                            <label>
                                                会议主题词:
                                            </label>
                                            <input type="text" class="input-xt" style="width:350px;" name="key_word" />
                                        </div>
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
                                    <a class="btn btn-default" href="javascript:history.back(-1);">{:L('BACK')}</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery-ui/jquery-ui.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery-ui/datepicker-zh-CN.js"></script>
    <script type="text/javascript">

        $(function () {
            $("#from").datepicker({
                dateFormat: "yy-mm-dd",
                defaultDate: "",
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                onClose: function (selectedDate) {
                    $("#to").datepicker("option", "minDate", selectedDate);
                }
            });
            $("#to").datepicker({
                defaultDate: "",
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                onClose: function (selectedDate) {
                    $("#from").datepicker("option", "maxDate", selectedDate);
                }
            });

            // 选择图片
            $(document).on("click", ".upBtn", function (e) {
                $("#upFile").click();
            });
            // 文件选择器change事件
            $("#upFile").on("change", function () {
                UploadFile("{:U('ConstructionAgentMeeting/upload')}", "construction_agent_meeting");
            });
            $(document).on("click", ".delFile", function () {
                if ($(this).attr("value") != undefined) {
                    delFile("{:U('ConstructionAgentMeeting/delFile')}", $(this).attr("value"), $(this))
                } else {
                    $(this).closest("div").remove();
                }
            });
        });
    </script>
</body>
</html>